<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title> hAdmin- 主页</title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico">

    <link th:href="@{/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet">
    <link th:href="@{/css/animate.css}" rel="stylesheet">
    <link th:href="@{/css/style.css}" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">核供体</strong>
                                    </span>
                                </span>
                            </a>
                        </div>
                        <div class="logo-element">核
                        </div>
                    </li>
                    <li class="line dk"></li>
                    <li>
                        <a class="J_menuItem" href="index_v1.html">
                            <i class="fa fa-dashboard"></i>
                            <span class="nav-label"><span th:text="#{dash_board}"></span></span>
                        </a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="index_v1.html">
                            <i class="fa fa-book"></i>
                            <span class="nav-label"><span th:text="#{document}"></span></span>
                        </a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="index_v1.html">
                            <i class="fa fa-newspaper-o"></i>
                            <span class="nav-label"><span th:text="#{news}"></span></span>
                        </a>
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-envelope"></i> <span class="nav-label"><span th:text="#{document_sharing}"></span><span class="fa arrow"></span></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" th:href="@{/email}">
                                    <span th:text="#{send_document}"></span>
                                </a>
                            </li>
                            <li>
                                <a class="J_menuItem" th:href="@{/email/history.do}">
                                    <span th:text="#{document_history}"></span>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a class="J_menuItem" th:href="@{/user/myDetails.do}">
                            <i class="fa fa-user"></i>
                            <span class="nav-label"><span th:text="#{my_details}"></span></span>
                        </a>
                    </li>
                    <li sec:authorize="hasRole('ADMIN')">
                        <a href="#"><i class="fa fa-gear"></i> <span class="nav-label">系统设置<span class="fa arrow"></span></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" th:href="@{/user/list.do}">
                                    用户设置
                                </a>
                            </li>
                            <li>
                                <a class="J_menuItem" th:href="@{/role/list.do}">
                                    角色设置
                                </a>
                            </li>
                            <li>
                                <a class="J_menuItem" th:href="@{/attachment/managingDocument.do}">
                                    管理文档
                                </a>
                            </li>
                            <li>
                                <a class="J_menuItem" th:href="@{/catalogue/setting.do}">
                                    目录设置
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i> </a>
                        <div class="row">
                            <div class="col-md-6 col-md-offset-5">
                                <h2 style="font-weight:600">中再集团核供体</h2>
                            </div>
                        </div>
                        <!--<form role="search" class="navbar-form-custom" method="post" action="search_results.html">-->
                            <!--<div class="form-group">-->
                                <!--<input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">-->
                            <!--</div>-->
                        <!--</form>-->
                    </div>

                    <ul class="nav navbar-top-links navbar-right">
                        <span>
                            欢迎，
                            <span sec:authentication="principal.realname"></span>
                        </span>
                        <li class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" id="language" >
                                <i class="fa fa-language" title="语言设置"></i>
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="language">
                                <li role="presentation">
                                    <a role="menuitem" tabindex="-1" href="http://localhost:8088/hgt/index.do?lang=en_US">English</a>
                                </li>
                                <li class="divider"></li>
                                <li role="presentation">
                                    <a role="menuitem" tabindex="-1"  href="http://localhost:8088/hgt/index.do?lang=zh_CN">中文</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a class="log-out" title="退出"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span></a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe id="J_iframe" width="100%" height="100%" frameborder="0"  seamless></iframe>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>

    <!-- 全局js -->
    <script th:src="@{/js/jquery.min.js}" ></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/plugins/layer/layer.js}"></script>
    <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
    <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>

    <!-- 自定义js -->
    <script th:src="@{/js/hAdmin.js}"></script>
    <script th:src="@{/js/index.js}"></script>

    <!-- 第三方插件 -->
    <script th:src="@{/js/plugins/pace/pace.min.js}"></script>
    <script th:inline="javascript">
        $('.log-out').click(function(){
            layer.confirm("确认退出系统？", {btn: ['确定', '取消'], title: "提示"}, function () {
                window.location.href=[[${ctx}]]+"/logout";
            })
        })
    </script>
</body>

</html>
